<!-- ZmAlert -->
<template>
  <el-alert :closable="closable" :type="type" v-bind="$attrs" v-on="$listeners">
    <slot />
  </el-alert>
</template>

<script>
export default {
  name: 'ZmAlert',
  props: {
    type: {
      type: String,
      default: 'warning'
    },
    effect: {
      type: String,
      default: 'light'
    },
    closable: {
      type: Boolean,
      default: true
    }

  },
  data () {
    return {
    }
  },
  methods: {
    // 初始化方法
    init () { }
  }
}

</script>
<style lang='scss' scoped>
</style>
